/*
 * Name     : SimpleLogger.java
 * Author(s): Jill San Luis
 * Created  : Mar 14, 2011, 1:28:52 PM
 */
package mazewar.utility;

/**
 * The SimpleLogger class
 *
 * @author  Jill San Luis
 */
public class SimpleLogger {

    private static final boolean LOG_ENABLED = true;

    private static SimpleLogger instance = null;

    /**
     * Creates a new instance of SimpleLogger.
     */
    private SimpleLogger() {
    }


    public static SimpleLogger getInstance(){

        if(instance== null){
            instance = new SimpleLogger();
        }
        return instance;
    }

    public synchronized void log(String className, String info){
        if(LOG_ENABLED){
            System.out.println("[" + className + "] " + info);
        }
    }
}
